package com.sailer.practice.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.concurrent.Callable;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Worker implements Callable<String> {

    private WorkParam param;


    @Override
    public String call() throws Exception {
        Thread.sleep(500);
        return param.getId()+"结果是:"+Double.sum(param.getId(),0.05D);
    }
}
